package com.ruoyi.project.purchase.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class P_drug extends BaseEntity {
    private Integer drugId;
    private String drugName;
    private String drugNumber;
    private String drugKey;
    private String drugType;
    private String drugRxType;
    private String drugUnit;
    private Double drugRxPrice;
    private Integer drugStocks;
    private Integer drugWarning;
    private Integer drugMatrixing;
    private Integer drugStatus;
    private Integer facId;
    private String factoryName;
    private String purOrderId;

    public P_drug() {
    }

    public P_drug(Integer drugId, String drugName, String drugNumber, String drugKey, String drugType, String drugRxType, String drugUnit, Double drugRxPrice, Integer drugStocks, Integer drugWarning, Integer drugMatrixing, Integer drugStatus, Integer facId, String factoryName, String purOrderId) {
        this.drugId = drugId;
        this.drugName = drugName;
        this.drugNumber = drugNumber;
        this.drugKey = drugKey;
        this.drugType = drugType;
        this.drugRxType = drugRxType;
        this.drugUnit = drugUnit;
        this.drugRxPrice = drugRxPrice;
        this.drugStocks = drugStocks;
        this.drugWarning = drugWarning;
        this.drugMatrixing = drugMatrixing;
        this.drugStatus = drugStatus;
        this.facId = facId;
        this.factoryName = factoryName;
        this.purOrderId = purOrderId;
    }

    public Integer getDrugId() {
        return drugId;
    }

    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getDrugNumber() {
        return drugNumber;
    }

    public void setDrugNumber(String drugNumber) {
        this.drugNumber = drugNumber;
    }

    public String getDrugKey() {
        return drugKey;
    }

    public void setDrugKey(String drugKey) {
        this.drugKey = drugKey;
    }

    public String getDrugType() {
        return drugType;
    }

    public void setDrugType(String drugType) {
        this.drugType = drugType;
    }

    public String getDrugRxType() {
        return drugRxType;
    }

    public void setDrugRxType(String drugRxType) {
        this.drugRxType = drugRxType;
    }

    public String getDrugUnit() {
        return drugUnit;
    }

    public void setDrugUnit(String drugUnit) {
        this.drugUnit = drugUnit;
    }

    public Double getDrugRxPrice() {
        return drugRxPrice;
    }

    public void setDrugRxPrice(Double drugRxPrice) {
        this.drugRxPrice = drugRxPrice;
    }

    public Integer getDrugStocks() {
        return drugStocks;
    }

    public void setDrugStocks(Integer drugStocks) {
        this.drugStocks = drugStocks;
    }

    public Integer getDrugWarning() {
        return drugWarning;
    }

    public void setDrugWarning(Integer drugWarning) {
        this.drugWarning = drugWarning;
    }

    public Integer getDrugMatrixing() {
        return drugMatrixing;
    }

    public void setDrugMatrixing(Integer drugMatrixing) {
        this.drugMatrixing = drugMatrixing;
    }

    public Integer getDrugStatus() {
        return drugStatus;
    }

    public void setDrugStatus(Integer drugStatus) {
        this.drugStatus = drugStatus;
    }

    public Integer getFacId() {
        return facId;
    }

    public void setFacId(Integer facId) {
        this.facId = facId;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public String getPurOrderId() {
        return purOrderId;
    }

    public void setPurOrderId(String purOrderId) {
        this.purOrderId = purOrderId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        P_drug p_drug = (P_drug) o;
        return Objects.equals(drugId, p_drug.drugId) &&
                Objects.equals(drugName, p_drug.drugName) &&
                Objects.equals(drugNumber, p_drug.drugNumber) &&
                Objects.equals(drugKey, p_drug.drugKey) &&
                Objects.equals(drugType, p_drug.drugType) &&
                Objects.equals(drugRxType, p_drug.drugRxType) &&
                Objects.equals(drugUnit, p_drug.drugUnit) &&
                Objects.equals(drugRxPrice, p_drug.drugRxPrice) &&
                Objects.equals(drugStocks, p_drug.drugStocks) &&
                Objects.equals(drugWarning, p_drug.drugWarning) &&
                Objects.equals(drugMatrixing, p_drug.drugMatrixing) &&
                Objects.equals(drugStatus, p_drug.drugStatus) &&
                Objects.equals(facId, p_drug.facId) &&
                Objects.equals(factoryName, p_drug.factoryName) &&
                Objects.equals(purOrderId, p_drug.purOrderId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(drugId, drugName, drugNumber, drugKey, drugType, drugRxType, drugUnit, drugRxPrice, drugStocks, drugWarning, drugMatrixing, drugStatus, facId, factoryName, purOrderId);
    }

    @Override
    public String toString() {
        return "P_drug{" +
                "drugId=" + drugId +
                ", drugName='" + drugName + '\'' +
                ", drugNumber='" + drugNumber + '\'' +
                ", drugKey='" + drugKey + '\'' +
                ", drugType='" + drugType + '\'' +
                ", drugRxType='" + drugRxType + '\'' +
                ", drugUnit='" + drugUnit + '\'' +
                ", drugRxPrice=" + drugRxPrice +
                ", drugStocks=" + drugStocks +
                ", drugWarning=" + drugWarning +
                ", drugMatrixing=" + drugMatrixing +
                ", drugStatus=" + drugStatus +
                ", facId=" + facId +
                ", factoryName='" + factoryName + '\'' +
                ", purOrderId='" + purOrderId + '\'' +
                '}';
    }
}
